/*Сброс отступов и базовые настройки*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/*Шапка (Верхняя панель с контактами)*/
.top-bar {
    background: #000000;
    color: #fff;
    font-size: 15px;
    padding: 10px 0;
}

.top-bar .contact-bar {
    width: 90%;
    margin: 0 15 15 auto;
    display: flex;
    align-items: center;
    gap: 45px;
    justify-content: flex-end;
}

.contact-bar {
    display: flex;
    align-items: center;
    gap: 3px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px; 
}

.icon img {
    width: 15px;
    height: 15px;
    display: block;
}

/*Шапка (Основная шапка)*/

/* Добавьте стили для компонента меню "top" (если нужно) */
.site-header {
    background: #fff;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.container.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    
    display: flex;
    justify-content: space-between; /* лого слева, меню справа */
    align-items: center;            /* выравнивание по вертикали */
    gap: 40px;
    box-sizing: border-box;
}

/* Левая колонка - Логотип */
.header-logo {
    flex-shrink: 0;   /* не сжимается, фиксированная ширина по содержимому */
}

.logo-link {
    display: inline-block;
    user-select: none;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
}

.logo-image {
    height: 90px; /* регулируйте для вашего логотипа */
    width: auto;
    display: block;
}

/* Правая колонка - Меню */
.header-menu {
    flex-grow: 1;    /* занимает всё доступное пространство */
    display: flex;
    justify-content: flex-end; /* меню прижато к правому краю контейнера */
    align-items: center;
}

/* Меню компонента (в шаблоне menu/top/template.php должен быть ul.menu-list) */
.main-navigation .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    white-space: nowrap; /* запрещаем перенос */
    align-items: center;
}

/* Пункты меню */
.main-navigation .menu-item {
    position: relative;
    display: inline-block;
}

/* Ссылки меню */
.main-navigation .menu-item > a {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
    font-family: 'Evolventa-Regular', sans-serif;
    font-weight: 500;
    color: #1A3455;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background 0.3s ease;
    z-index: 10;
}

/* Наведение и активные состояния */
.main-navigation .menu-item > a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #1A3455;
    transition: width 0.3s;
}

.main-navigation .menu-item > a:hover::before {
    width: 60%;
}

.main-navigation .menu-item > a::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,52,85,0.1) 0%, rgba(245,248,252,0.5) 100%);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s, transform 0.3s;
    border-radius: 30px;
    z-index: -1;
}

.main-navigation .menu-item > a:hover::after {
    opacity: 1;
    transform: scale(1);
}

.main-navigation .menu-item.active > a {
    color: #fff;
    background-color: #1A3455;
    box-shadow: 0 4px 12px rgba(26, 52, 85, 0.2);
    font-weight: 700;
}

.main-navigation .menu-item.active > a::before,
.main-navigation .menu-item.active > a::after {
    display: none;
}

/* Выпадающие подменю */
.main-navigation .menu-item.dropdown ul.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.main-navigation .menu-item.dropdown:hover > ul.submenu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Стили подменю */
.main-navigation .submenu .menu-item > a {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 0;
    text-transform: none;
    color: #1A3455;
    background: none;
}

.main-navigation .submenu .menu-item > a:hover {
    background: #f5f8fc;
    color: #0063ec;
}

.main-navigation .submenu .menu-item.active > a {
    color: #0063ec;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .container.header-wrapper {
        gap: 20px;
    }
    .logo-image {
        height: 70px;
    }
    .main-navigation .menu-list {
        gap: 8px;
        flex-wrap: wrap;
    }
    .main-navigation .menu-item > a {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .container.header-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    .logo-image {
        height: 80px;
    }
    .header-menu {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .main-navigation .menu-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-items: center;
        max-width: 360px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }
    .main-navigation .menu-item {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .main-navigation .menu-item > a {
        width: 100%;
        padding: 10px 0;
        text-align: center;
        border-radius: 20px;
        font-size: 14px;
        letter-spacing: normal;
        text-transform: none;
    }
    .main-navigation .menu-item.dropdown ul.submenu {
        display: none !important;
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: unset;
        padding: 0;
        height: 0;
        overflow: hidden;
    }
    .main-navigation .menu-item.dropdown:hover > ul.submenu {
        display: none !important;
    }
}



/* Заголовки */
a {
    text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1 {
    font-size: 48px;
    color: green; 
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    color: #0063EC;
    margin-bottom: 15px;
}

/* Абзацы */
p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

/*MAIN*/
/*Главная*/

/*Тарифы*/
/*Загаловок*/
.popular-tariffs {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0063EC;
    text-align: center;
    margin: 1px 0 20px;
    padding: 15px 0;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.popular-tariffs::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0063EC;
    margin: 15px auto 5px;
}

.popular-tariffs::before {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0063EC;
    margin: 0 auto;
    opacity: 0.7;
    position: relative;
    top: 40px;
}

/*Карты*/
.card-container {
    display: flex;
    justify-content: center;
    gap: 150px; 
    padding: 40px;
    overflow-x: auto; 
    max-width: 100%;
    margin: 0 auto;
}

.card {
    background-color: #f3f3f3;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 320px;
    min-width: 320px; 
    box-sizing: border-box;
    flex-shrink: 0; 
}

.card-content h3 {
    color: #0063EC;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.card-content p:first-of-type {
    color: #555;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.tariff-section {
    margin-bottom: 15px;
}

.tariff-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.tariff-features {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.tariff-features li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}

.tariff-features li:before {
    content: "•";
    color: #0063EC;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
}

.tariff-price {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 15px 0;
}

.tariff-connection {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.tariff-button {
    background-color: #0063EC;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
}

.tariff-button:hover {
    background-color: #0050c0;
}
@media (max-width: 768px) {
    .card-container {
        flex-direction: column !important; /* ставим колонки вместо ряда */
        gap: 20px !important; /* уменьшаем расстояние между карточками */
        padding: 20px 15px; /* уменьшаем отступы контейнера */
        overflow-x: visible !important; /* отключаем прокрутку по горизонтали */
        align-items: center;
    }

    .card {
        width: 90% !important; /* карточки почти полностью занимают ширину */
        min-width: auto !important; /* снимаем минимальную ширину */
        flex-shrink: 1 !important; /* позволяем карточкам сжиматься */
        margin-bottom: 0; /* gap уже задаёт отступы */
    }
}

@media (max-width: 480px) {
    .popular-tariffs {
        font-size: 1.25rem;
        text-align: center;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        margin-bottom: 20px;
    }

    .tariff-section h3 {
        font-size: 1.1rem;
    }

    .tariff-price {
        font-size: 1.2rem;
        color: #d9534f;
        font-weight: bold;
        margin-top: 10px;
    }

    .tariff-button {
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
    }
}
/*Преимущества*/
.advantages-section {
    background: linear-gradient(180deg, #0063EC 0%, #5cc0ff 100%);
    padding: 40px 0 60px 0;
}

.advantages-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.advantage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
}

.advantage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 30px 20px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    text-align: center;
    position: relative;
}
.advantage-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 0;
    width: 1px;
    height: calc(100% - 40px);
    background: rgba(255,255,255,0.4);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    object-fit: contain;
}

.advantage-card-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 16px;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.advantage-text {
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}

/* Подача заявки */
.tariff-help-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    font-family: 'Arial', sans-serif;
}

.container-help {
    max-width: 1950px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-wrapper {
    display: flex;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-content {
    flex: 1;
    padding: 50px;
}

.form-title {
    font-size: 28px;
    color: #0063EC;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.help-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0063EC;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input {
    margin-right: 10px;
    cursor: pointer;
}

.radio-option span {
    font-size: 16px;
    color: #333;
}

.submit-btn {
    background-color: #0063EC;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #0050c0;
}

.policy-links {
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.policy-links a {
    color: #0063EC;
    text-decoration: none;
}

.policy-links a:hover {
    text-decoration: underline;
}

.form-image {
    flex: 1;
    min-height: 400px;
}

.form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Футер (Подвал) */
.footer {
    background-color: #000000;
    color: #0063EC;
    padding: 50px 0 30px;
    margin-top: 50px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    
}
/* Стили колонок */
.footer-column {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* Заголовок */
.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0063EC;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #0063EC;
}
/* Контакты */
.footer-contacts p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-contacts strong {
    color: #ecf0f1;
    font-weight: 600;
}

.footer-contacts a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: #2980b9;
    text-decoration: underline;
}
/* Логотип */
.footer-logo {
    text-align: center;
}

.logo-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.company-slogan {
    color: #bdc3c7;
    font-size: 16px;
    font-style: italic;
    max-width: 200px;
}
/* Правая колонка */
.footer-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

.copyright {
    color: #bdc3c7;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-links {
    list-style: none;    /* убираем точки */
    padding: 0;          /* убираем внутренние отступы (если надо) */
    margin: 0;           /* убираем внешние отступы (если нужно) */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
}

/*Адаптации под устройства*/
/* Для больших мониторов */
@media (min-width: 1400px) {
  .container {
    margin: 0 300px;
  }
  .card-container {
    gap: 100px;
  }
}

/*Для ноутбуков и стандартных мониторов*/
@media (max-width: 1200px) {
  .container {
    margin: 0 40px;
  }
  .card-container {
    gap: 40px;
    padding: 20px;
  }
  nav {
    gap: 20px;
  }
}

/*Для планшетов*/
@media (max-width: 900px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  nav {
    position: static;
    transform: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }
  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .form-wrapper {
    flex-direction: column;
  }
  .form-image {
    min-height: 200px;
  }
}

/*Для мобильных устройств*/
@media (max-width: 768px) {
  .about-company {
    flex-direction: column;
    margin: 20px auto 40px;
  }
  .about-text, .about-image {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .container, .container-help, .footer-container {
    margin: 0;
    padding: 0 5px;
    max-width: 100%;
  }
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .top-bar .contact-bar {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
  }
  .card {
    width: 100%;
    min-width: unset;
    padding: 15px;
  }
  .advantages-title {
    font-size: 1.3rem;
  }
  .advantage {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-content {
    padding: 20px;
  }
  .form-image {
    min-height: 120px;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-column {
    min-width: unset;
    padding: 0 5px;
  }
}